fix(deps): revert effect to 4.0.0-beta.57 (pre-regression)#26067
fix(deps): revert effect to 4.0.0-beta.57 (pre-regression)#26067stephanschielke wants to merge 3 commits intoanomalyco:devfrom
Conversation
effect@4.0.0-beta.58 (Effect-TS/effect-smol#2098) changed Stream.mkUint8Array from an immutable Channel.runFold pattern to a mutable accumulator. Combined with bun build --compile --minify (PR anomalyco#22362), JSC freezes the fold accumulator object between iterations, causing "Attempted to assign to readonly property" on all tool calls after the first. Reverting to beta.57 (last known-good). The bump was a routine chore (anomalyco#25524) with no feature dependency. Related: anomalyco#25873, Effect-TS/effect-smol#2126
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicates Found:
These are alternative solutions to the same problem rather than true duplicates. The current PR (#26067) takes the dependency revert approach, while #26066 and #25867 represent the other two alternative fixes mentioned in the PR description. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Closing: root cause is not the effect version. See #25867 for the actual fix (Immer freezing shared tool input reference via EventV2.run). |
Issue for this PR
Closes #25873
Related: #25835
Type of change
What does this PR do?
Reverts
effectfrom4.0.0-beta.59to4.0.0-beta.57in the workspace catalog.The bump from beta.57 to beta.59 was a routine chore (PR #25524) with no feature dependency. beta.58 (Effect-TS/effect-smol#2098) changed
Stream.mkUint8Arrayfrom an immutableChannel.runFold(newUint8Arrayper iteration) to a mutable accumulator (acc.bytes += ...; acc.arrays.push(...); return acc). Combined withminify: truein the build script (PR #22362), JSC freezes the fold accumulator between iterations, causingAttempted to assign to readonly property.v1.14.33 (minify + beta.57) worked. v1.14.34+ (minify + beta.59) crashes.
@effect/opentelemetryand@effect/platform-nodealready use beta.57 in the workspace.Upstream: Effect-TS/effect-smol#2126, Effect-TS/effect-smol#2127
Related PRs (alternative fixes):
runForEachHow did you verify your code works?
Stream.mkUint8Arrayis the only relevantStream.tschangebun installresolves cleanly to beta.57 (already cached from@effect/opentelemetryand@effect/platform-node)TS2416inbus/global.ts, same ondev)Screenshots / recordings
N/A (dependency version change, not a UI change)
Checklist